(function() {
	'use strict';
	
	
	CCR.Models.Song = Backbone.Model.extend({
		
				parse : function(data) {
					return data;
				},
				// 获取单曲信息
				getSongInfo : function(song_id ,callback) {
					var self = this;
					var url = CCR.Config.radio_song_url;

					url += "songid=" + song_id + "&access_token="
							+ CCR.Config.getToken().access_token;
					
					CCR.Router.navigate('isFavorite/' + song_id, true);
					
					$.getJSON(url, function(songinfo) {
						if (songinfo) {
							//播放音乐
							//取消自动播放
							CCR.Player.doPlay(CCR.Player,songinfo);
							typeof callback==="function"&&callback(songinfo);
						}
					});
				},
				initialize : function(options) {
					//
				},
			});
})();